package com.web.star.rabbitmq.sender;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;

public class HelloSender {
    
    @Autowired  
    private AmqpTemplate rabbitTemplate;  
    
    public String send(String name) {
        this.rabbitTemplate.convertAndSend("hello", name);
        return "";
    }
  
    
}
